package model

type AiDrawT struct {
	Id                int64   `json:"id,string"`
	UserId            int64   `json:"userId,string"`
	ImgBase64         string  `json:"imgBase64"`
	ThumbsUp          int64   `json:"thumbsUp,string"`
	Prompt            string  `json:"prompt"`
	ChinaPrompt       string  `json:"chinaPrompt"`
	NegativePrompt    string  `json:"negativePrompt"`
	Steps             int     `json:"steps"`
	Seed              int64   `json:"seed,string"`
	Size              string  `json:"size"`
	Model             string  `json:"model"`
	Sampler           string  `json:"sampler"`
	CfgScale          int     `json:"cfgScale"`
	DenoisingStrength float32 `json:"denoisingStrength"`
	Integration       int64   `json:"integration,string"`
}

func (r *AiDrawT) TableName() string {
	return "ai_draw"
}

type SearchAiDraw struct {
	Page     int    `json:"page" form:"page" binding:"omitempty,gte=1"`         // 页码
	PageSize int    `json:"pageSize" form:"pageSize" binding:"omitempty,gte=1"` // 每页大小
	OrderBy  string `json:"orderBy" form:"orderBy"`
	Sort     string `json:"sort" form:"sort"`
}
